package com.example.consumer;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author weiZhiLin
 * @version 1.0
 * @date 2021/6/22 19:26
 */
@Component
@FeignClient(name = "provider", fallback = ProviderBack.class)
public interface FeinApi {
    @GetMapping("/getPort")
    String getPort();
}
